package nc.impl.pub.utils;

import nc.bs.dao.BaseDAO;
import nc.itf.pub.utils.IDBService;

public class DBServiceImpl implements IDBService {

	private BaseDAO dao = new BaseDAO();
	@Override
	public int updateSql(String sql) {
		try {
			return dao.executeUpdate(sql);
		}catch(Exception e) {
			nc.vo.pubapp.pattern.exception.ExceptionUtils.wrappException(e);
		}
		return 0;
	}

}
